import request from "../utils/request";

const api_name = '/comment'

export default {
    // 获取分页评论数据
    getPagedList(page, limit, courseId) {
        return request({
            url: `${api_name}/list/${page}/${limit}/${courseId}`,
            method: 'get'
        })
    },
    // 添加评论
    addComment(comment) {
        return request({
            url: `${api_name}`,
            method: 'post',
            data: comment
        })
    }
}